define(function(require,exports,module){
   var NavList=[{
       text:'马上交易',
       cls:'index',
       link:'#/'
    },{
       text:'我的持仓',
       cls:'orders',
       link:'#/order'
    },{
       text:'投资学院',
       cls:'article',
       link:'#/article'
    },{
       text:'个人中心',
       cls:'user',
       link:'#/user'
    }],
    Vue=require('Vue'),
    vm;
	function initFooter(index){
		if(!vm)vm=new Vue({
	    	el:'#tabbar',
	     	data:{
	     		focus:index?index:0,
	     		show:true,
	        	navs:NavList
	     	},
	     	template:$('#tabbarTpl').html()
	   	});
	}
	exports.init=initFooter;
	exports.setFocus=function(i){
		vm.focus=i
	}
	exports.setShow=function(i){
		vm.show=i
	}
});